<% if topic.topic_container.is_a?(Competition) %>
<div class="left" style="width:510px">
<% else %>
<div>
<% end %>
  <%= div_tag('div_tsh_', topic) %>
    <%= div_tag('div_lrsht_', topic) %>
      <% topic.remarks.sort.each do |remark| %>
        <%= render remark %>
      <% end %>
    </div>
    <%= render partial: 'remarks/form', locals: { remark: create_remark(topic) } %>
  </div>
</div>
<% if topic.topic_container.is_a?(Competition) %>
<div class="right frame" style="width:220px;position:relative;top:12px">
  <div class="area">
    <h4 style="line-height:25px">标签</h4>
    <ul class="filter-list">
    <% topic.tags.each do |tag| %>
      <li><%= tag.name %></li>
    <% end %>
    </ul>
    <%= form_for topic, url: append_tag_topic_path(topic), method: :post do |f| %>
      <%= text_field_tag :tag, '', 'class' => 'single-line' %>
    <% end %>
  </div>
</div>
<% end %>